Kolmogorov Smirnoff test for stepwise optimality and rho