Added cudamat softmax function.