bignum.h: restoring pow_mod from zerocoin branch (at commit fa5fa24)