added add() and div() methods to NeuralNetworkGradient to support the newer MultiLayerGradient class