added KS test and chi2 Test