updated kernel kmeans