Algorithmic Number Theory, Vol. 1: Efficient Algorithms (Foundations of Computing)