performs xor on files