fn rank_blocks<T: Real>(which: Which, vals: &[(T, T)]) -> Vec<usize>
KS4: the order of the blocks with values vals (representatives), most wanted first; ties by tie_break, then the input order (locked blocks come first).
vals
tie_break