fix #14: extract k-means clustering program from Word2vec