added has sub-seq
now trees
adding tree tests and refactored adding a foldr