Added erase method for std::vector