The fast calculation of the exact distribution of pearson's chi-squared and of the number of repeats within the cells of a mltltinomial by using a fast fourier transform