An implementation of k-means clustering algorithm in Java.