Printing the boundary of a binary search tree