Optimization of STL vectors of doubles