change output format in KMedoids