learning structured bayesian networks