Not recursive way to do the inorder traverse