cpds are now stored in a dicionary for bayesian networks