fn canonical_spans(side: &Vec<(i32, f64)>) -> Vec<(i32, i32)>
Spans with one span per run of consecutive indices.