Bernoulli mixtures and structure learning