Implementing a binary search tree.