implement XOR in FANN