inorder traverse without recursion