A Comparative Study of Variable Elimination and Arc Reversal in Bayesian Network Inference