pub fn build_b_map(stats_b: &[ProgStats]) -> HashMap<String, u64>
Build the B-side lookup map from collected stats.