A library for arbitrary precision arithmetic