Add Learning algorithm for neural network.