manual newton's method