Generate list of all possible combinations of elements of vector Generate list of all possible combinations of elements of vector r r