small snippets to find subsets of a given list