Boundary Traversal of a tree