pub fn priority_tiers(priorities: &[(usize, i64)]) -> Vec<u64>
Packing tiers from (cpu, priority) pairs: equal priorities share a tier, the highest priority is tier 0. Returns the tier per pair, in the order given.