merge_intervals