fn RemapBlockIds( block_ids: &mut [u8], length: usize, new_id: &mut [u16], num_histograms: usize, ) -> usize