clean up iterative inorder traversal