Parallel softmax.

Parallelized the softmax layer using the reduce algorithm.
For the nnjm application, this is needed due to the large
size of the output layer.
Hacky change that will work only in one dimension.