Add a range to the merge queue.
Ensure that the internal array has at least n cells.
Ensure that the internal array has at least n cells.
Return a list of merged intervals.