KMeans clustering algorithm by Java