binary tree traversal.