Added Newton's method to find zeros of a single variable function (+
helper methods).