Added 2's complement helpers

* Added tests for util methods.
* Split more shared code into util.
Added support for signed addition