A library containing common number theory algorithms