Check if one tree is a subtree of another tree