Static vector to avoid massive vector copy...
Merge pull request #17 from JoeTheDentist/fix/vector_optim

Fix/vector optim