quadratic sieve working