Created printBinary method for byte and integer