A Channel-based Exact Inference Algorithm for Bayesian Networks