Vector class template that imitates STL vector class