A C++ stl emulation in C