implemented the kmeans algorithm!  will change some things later in order to choose the best k