implemented iterative inorder traversal algorithm