Machine learning of XOR problem