resolve Merge_Intervals