Implement Kalman filter.