Added k-means clustering, with centers on grid and centers by tsp.