Add my bayes net code and Dougs pseudo code for the g (f) algo.