Refine the code of IntervalBinarySearchTree