Use "std::vector<VertexData>" instead of "new array"