Added new superclass Tree and made BinaryTree a subclass.