Convert bignumc.c to C++