Debugging and new Tree Traversal algorithm