Fixed references to functions that are now part of the BinaryTree class