K-medoid updated