working on BinaryTree Algorithms