Please use `std::unordered_map` instead of `std::map`. It will be faster.