Updates of KMeans and libSVM