Fix  bugs in permutation test & HWE test
getRank,  calcuate contigengcy