boundary traversal of binary tree