Function to solve the soft thresholding problem
S_func(x, a)
x
The data value
a
The lambda value
The solution to the soft thresholding operator.