Lightweigt hashmap implementation with C++