Clustering algorithms for statistical physics and HPF.