fixed type error in kmeans2