bigpow.c power log2(n) time with bignum