Use list instead of unordered_map (minor perf. improvement)