Adapted calculation of residuals to Kalman model
Updating binary pursuit step to Kalman model [work in progress]