Removed code duplication in RctifiedLinear.

I have done some test and it seems to work so far (MLP on MNIST). 
Further might be necessary, though I don't have another test that comes to mind now.