Added gradient regularization to NN cost function.
Checking backpropagation with regularization.