Fix a stupid for loop index mistake.
In NeuralNetwork::~NeuralNetwork().