fn compute_pk_weights(sorted_pk_indices: &[u16], pk_weights: &mut Vec<u16>)
Returns pk weights to sort a data part and replaces pk indices.