writing for kmeans and entropy, add debug informantio for kmeans