jc.test function

A function to compute joint-count test for binomial and multinomial (asymptotic and permutation distributions).