Computational Complexity of Bayesian Networks