Updated Newton method; finished off Secant method