fn normalize_offsets(offsets: &mut Vec<Offsets>)
Sorts and merges overlapping or adjacent byte ranges.