Clustering algorithms implemented using the WorkQueue framework