bayesian network and gm tools