Inorder traversal without recursion by using stack