Handy mirror method to switch the leaves or every node in the tree.