add hash_map for algorithm