Add Newton method implementation