pub fn reverse_slice_index_bits<F>(vals: &mut [F])
Permutes arr such that each index is mapped to its reverse in binary.
arr