Here is some code demonstrating how to do it. I'd recommend either creating a matrix class yourself, (or using mine ), rather than using nested vectors, because you will simply end up with a lot of redudancy after you do it awhile. You can comment out of all the stuff referring to Matrix if you don't want to use it and still compile it. If you want to use the Matrix class, it's here.. and you can use it without the GPLing your work if you so choose as well.

You'll need to get rid of the line "#include "../Config.h" in order for the matrix to compile, however.