added comparator and hash_func to hash map
naive chaining implementation