Switch to Dict instead of PHMaps. Dicts are faster.

`merge` is a pure operation.