added cost metric for kmeans for SCC 13