Common operations on a binary tree.