Create mergeIntervals