generate all size m combinations of ints from 0 to n-1