Switching thread-map to unordered_set