added support for rectified linear neurons

- added class for neural layers with [rectified linear activation functions](http://en.wikipedia.org/wiki/Rectifier_%28neural_networks%29)
- fixed a small problem with NeuralNetwork's gradient checking