Implemented Remove() methods for all algorithms.