Added double factorial code from GMP 5.1.3.