Added resize functionality to the vector.