Add a resize function to Vector.