Genetic solutions to XOR problems