Replace SSE by MSE.
Remove SSE from python bindings.
Gradient has been devided by number of samples already.
Simplify LMA.