An arbitrary precision calculator implemented in C