Solving XOR using neural networks