also can use interval tree to calculate reverse number to count light cutting plane problem