Add solution to check if a tree contains a subtree