Small Java implementation of Newton's Method for finding roots of functions.