implement lock-free closed hashmap