parse BIF format and generate a Bayesian Network