SMS dit: Bayesian filtering and smoothing