Add a vector of values of which we want the permutations/combinations so this way we can avoid creating two large matrices/lists.
We can do this using closures, but we may want to be more efficient than using callbacks.

Duncan Temple Lang <duncan@wald.ucdavis.edu>
Last modified: Tue May 31 12:42:32 PDT 2005