update new algo question for interval inserting