Optimise newton.
Merge branch 'release/v0.5.3'