kmeans script init