minmax0_smooth function

Smooth approximations to max(x, 0) and min(x, 0)