STL vector implementation