Tree Traversal In Data Structure Code