Define unordered_map as template so it can be reused.