A Lattice Solution to Approximate Common Divisors