use inorder traversal to make the tree beauty