Updated Clustering Algorithm