test: Add snpm reference version in directory name
More efficient computation of permutation indices