Clustering algorithms written in Java