improved the kMeans algorithm