Defined in File hierarchy_tree_array-inl.h
select the node from node1 and node2 which is close to the query-th node in the nodes. 0 for node1 and 1 for node2.