--- from: http://rosettacode.org/wiki/Permutation_test note: Probability and statistics