Binary tree exchanges left and right subtrees Query ancestor nodes