If vector contains enough elements, it will now replace old elements instead of clearing and reallocating