Bayesian Networks in Scala