A vector with backward indexing using negative indices (C++ Project for school)