factor_cache remembers one prime factor (the largest seen) for integers
that factorint() has split, and factorint() consults it first.
FactorCache(maxsize) creates another cache; the oldest entries are dropped
beyond maxsize. Methods: get(n) returns a stored factor or NULL (primes
within the sieve return themselves), set(n, factor) stores a prime factor,
add(n, factors) stores every prime factor of n given in factors,
remove(n) drops an entry, cache_clear() empties the cache,
set_maxsize(m) changes the bound and size() counts entries.