Fixed kmeans with a simple algorithm. Removed external kmeans libraries because we don't need them.