removeAbove and removeBelow functions

Adds support for two new thresholding functions.