implement VECTOR_ERASE_RANGE