I am trying to create an algorith in R that not only lists all possible subsets of a vector but also allows me to check for certain properties of these subsets, so combn is not