Implementing merge with diff_match_patch.