Do not compute more permutation than requested, even with lots of processors

If there are more processors than requested permutations, some processor
must do nothing. Before, all processors did something, sometimes corrupting
memory...