handle the case when number of points less than k
Merge branch 'KMeans' into kyle-new-web-app
Attempt at cache-ing data, still buggy