poj 3264 Balanced Lineup (Interval tree)