use ann for previous NeuralNetwork and dnn for DeepNet, add XOR test