implemented concurrent hash set. Should be used instead of hashset when multiple threads are supposed to access the set