Dictionary implementation using hashtable data structure in C++