K-MEDOID ALGORITHM IN JAVA