Fixes xor method: operates on an array instance