Implementation of some hashmap algorithms in C++