Stack Filters in Signal and Image Processing