mod: improved vector<T>