Revert "Switch to mpz_class"

This reverts commit 0056228b7232830d40d5a615cb0d482add01d99a.
Revert "Start fresh with C++"

This reverts commit 3fd42981c20555f3156378e771c114fcce64ccf6.