add Newton's Method algorithm