batch update for ANN. Perceptron. Gradient Descent.