Update NeuralNetwork.py

Added Mini Batch feature to enable user to compute nnCostDer using mini batch (or stochastic gadient) instead of batch