writing k-means
finished k means