finish Bayesian filter impl