added example using kmedoids