A computational introduction to number theory and algebra - Shoup, Victor (Cambridge Univ. Press, 2006)