Implemented interval tree