Further implementation of BinarySearchTree and TreeNode classes.