Extremely memory-efficient C++ hash_map implementation