[Complete] the interval tree

Pass the unit test.