changed S-Box to operate in hex