Implement Bayesian Belief Networks