Insert interval problem