Implemented basic multiple precision arithmetic (CPU only)

Implemented a few basic functions for the multiple precision library
that currently only runs on the CPU. Did it mostly to get my feet wet
in writing MP arithmetic code. Probably going to try to port what I
have now to GPU code a figure out how to write tests.