Algorithm-based distribution of two-sample statistics. (2nd July 2016)