Minimization of the Number of Iterations in K-Medoids Clustering with Purity Algorithm