Text this: Modification of the Sugar-James Algorithm for Clustering Measurements of Mode Parameters