Vertex loader: more vector code

Probably yeah; what's the right way to do that in C++? I barely know templates