1-dimensional k-means clustering c++

the centers are probably float, not double, too.