Implementation of XOR gate. Closes #24.
Refactor XOR code.
Update descriptions of XOR and VOTE gates.
Add tests identifying bug #36.
Redefinition of a primary event with a different type is caught.
Fixes #36.
Add benchmark tests for XOR gate.