Interval tree construction.