Newton seems to be working for sin, for symmetric and asymmetric intervals, having added guarded_mid to bisection. Added debug flag to Newton