Changed std::map -> std::unordered_map. At least -std=c++0x is requred now.