A typeclass for byte operations?