Java - Uses the Newton Raphson method to find a square root