Seol mar théacs é seo: Modification of the Sugar-James Algorithm for Clustering Measurements of Mode Parameters