Design and implementation of advanced bayesian networks with comparative probability