Attempt of implementing the quadratic sieve algorithm