Allocate the right amount of memory for this vector up front.