quick utilityu for dealing with two's complement numbers. made for a homework