medoids function

Compute pam-consistent Medoids from Clustering