Basic All-purpose Toolkit for Arbitrary-precision Textual Arithmetics