Thresholding functions

Added several new functions for various thresholding methods