Modified insert_range to make sure that iterator it_ points to the last interval always and not beyond.