Kmeans algorithm for binary features