binary tree non-recursive preorder traversal