Function to compute the P-value for the observed Friedman, Kendall-Babington Smith S statistic.
Useful links