An implementation of the basic number field sieve