Given sorted non-overlapping intervals and a newInterval, insert and merge if necessary.
Three-Phase Scan
Group intervals into: before, overlapping, after the new interval.