Try a naive approach for the contains (or maybe subtree) function