use a HashSet to trim duplicate subsets