hash table class in c++ and compare operation performance with STL map