Implementing Tom Minka'a moment matching in Bayesian Networks.