HashMap implementation in C++ for fun