Vectorized implementation of the Kalman Filter.