improved gradient descent in CNeuralNetwork
cleanups in CNeuralNetwork
Merge pull request #2135 from khalednasr/develop

improved gradient descent in NeuralNetwork