updates for BinaryTree.java