use inorder to find subtree head