Iterative solution to Inorder traversal