Adding exclusive xor option

Closes #66