Add randDiscreteDict and fix logBayesScore

add randDiscreteDict and fix logBayesScore to support discrete Bayesian networks
fix logBayesScore