Since, the update is linear and we need to iterate through all tokens twice, this update takes O(n 3 ) operations.
the update λ +v is applied for the cases with three degrees of freedom and a linear update, it runs in O(n 4 ) time.