Added k-clustering hamming