map and vector in C version