Small fixes to kmedoids