pub fn compute_flipped_bit_idx_and_value_graycode( curr_val: u32, next_val: u32, ) -> (u32, bool)
Compute the single flipped bit and its previous value for the gray codes iterator.