Add minimization by Newton's method to tomlib