Enhancement: reorganization of KS test in Statistics for faster
calculations.