pub fn k_way_merge(slices: &[Vec<f64>]) -> Vec<f64>
K-way merge of multiple sorted slices using a min-heap approach.
Each input slice must already be sorted.