added bitwise subtract for byte arrays
added hosts calculation functions
reversed addr and broadcast so that the remainder would make sense