update entropy and kmeans