Added tuning code from GMP for gcd, gcdext, jacobi and fac_ui.