update kmeans class to use points instead of values