inorder traversal, nonrecursive