my implementation onKmedoids clustering in Java