backtrack tree cut