Beta-binomial gradient with respect to its pi parameter; for internal use by C++, accounting for numerical precision problems via increased memory usage (number of bits per number)

GradPi_cppi_MP(M, N, PI, THETA, NecPres)