added traversal algorithms for binary trees, some logic implementations
such as counting the number of nodes in the tree.