Implemented BinaryTree with child pointers