1. added hash_map
2. changed Sleep to std::this_thread::sleep_for