added function to XOR byte arrays