Added temp functions for copying global variables into solver structure. Filled in gpu mempy functions. Broke out smd utility funcs into separate module.
Added rudimentary unit test for comparing results.