Binary quadratic forms : an algorithmic approach - Buchmann, Johannes (Algorithms and computation in mathematics, 2007)