Extended SimpleKMeans. Prints out to an outfile