iterative inorder traversal of a BST