Remove most of HashTools.

We should encourage usage of std::unordered_map and std::map