Fixed diffLagrange

The was a problem with the third loop on step 12