initBN.fromVars function

initBN.fromVars: a function to initialize the bayesian network.