Training using C++ to make quick associative insert/search using hash