adding SoftMax and SpatialSoftMax bindings