Check out a bignum library.