fixed bug in kmeans.sh