Implement basic binary tree.