Watching the k-means data clustering algorithm at work is a thing of beauty.
I've written a #golang implementation, which you can find here:
Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.
All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.