Improve performance of `merge_with` as discussed in #132
Merge pull request #138 from eriknw/faster_merge_with

Improve performance of `merge_with` as discussed in #132