Code snippet for Kolmogorov Smirfnoff test.