Implemented Kolmogorov-Smirnov critical value function.