Use `unordered_map` to reduce search costs.