prime fix
d(i,j) done, but we got a memory leak in BigInt