unionWithKey package:dependent-map

O(n+m). Union with a combining function.