Print the boundary of the tree nodes