Naive implementation of the Kalman filter, smoother and disturbance smoother for state space models.