Some optimizations to the replace(), remove() and removeAll() methods + removed ...