check if one tree is subtree of another tree