pub fn reverse_index(i: usize, size: u64) -> usize
Reverses the log2(size) first bits of i
log2(size)
i