Change std map to unordered_map (speedup)