C++/BigInteger: Refactor