added todo to encapsulate everything into a BinaryTree class