int loopcnt = 0;
NBitSignature permutedS = new NBitSignature(D);
while (true) {
try {
ArrayListOfIntsWritable a = p.nextPermutation();
s.perm(a, permutedS);
System.out.println((loopcnt++) + "\n" + permutedS);
assertTrue(cntBits == permutedS.countSetBits());
// System.out.println(permutedS);
} catch (RuntimeException e) {