Interval Tree implementation in Java