Inserting interval between sorted intervals