Newton Raphson implemented, testing required.