C++ Implementation of Finite Fields.