Added functions to aid in inference with the Bayesian network