Interval tree

Reference: http://en.wikipedia.org/wiki/Interval_tree