k-means written, working on compiling