MergeIntervals