fn grow_vec<T>(vec: &mut Vec<T>, index: usize)where T: Clone + Default,
Grow the given vector so it fits the given index.
This does nothing if the vector is already large enough.