LogSoftMax optimizations

This PR offers optimizations for the reductions inherent to the LogSoftMax kernels. We included additional unit tests for batch LogSoftMax. We also removed two superfluous argchecks in SpatialConvolution.