Update NeuralNetwork.cpp