Find the roots of a function using Newton's Method.