Interval merge (part 1)