Quadratic sieve changes

debug mode
pre-allocated memory