find clusters from ks test results