C157. An improved algorith for the fast calculation of the exact distribution of pearson's chi-squared