Insert and merge Intervals