Used Sebastian's newton iteration code for fmpz_poly_preinvert.