HardThresholding -- Hard Thresholding input: in: input coefficients threshold: threshold output: out: the thresholded values of in