inorder traversal using iteration