There is another problem: the nesting level is fixed:
2 levels:
vector <vector <type> >
3 levels:
vector <vector <vector <type> > >

but it's not variable at run-time.