thresholding functions

Added several new functions for various thresholding methods
Merge pull request #5 from foloumi/master

Thresholding functions