Added Newton's Method Code