Clustering and quantization of binary vectors with stochastic complexity