added softmax function to MatrixUtils