hopefully improved kmedoids clustering