Create BayesianNetwork