Implemented remove() and remove_if() interface