implementation of interval search tree