Description
I reimplemented the Kolmogorov-Smirnov test statistic for two samples because of its problems with identical values. Although its already fixed in the meantime (see MATH-1197), the proposed code is an improvement, because it is simpler and does not require binary searches.