implement GPU version of Softmax