Forgetting factor least squares algorithm