softmax function

Softmax function and its inverse