Constituency tree search utilities