Simulate a p-value for the significance of the Kolmogorov-Smirnov D-statistic from confirm().
Useful links