Implement a hash table in C++