std::bigint: improve performance