initBN.fromPed function

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