SoftThresholding -- Soft Thresholding input: in: input coefficients threshold: threshold output: wt: the thresholded values of in