Added map method to hashSet