kmeans implementation - not finished