working on kmedoids