Finished collect_merge_max
Optimized map_key_values