Simple binary tree implementation.