Update BayesianNetwork

Can executes the sample network from last assignment