adding some new snippets
subsets and permutations