Inference in Bayesian Networks