refactored single byte xor with inject and array of hashes