mergeIntervals