Use distribution data structure in Bayes net nodes.