kmedoids function

K-Medoids or PAM clustering of weighted data.