A clone of https://code.google.com/p/google-diff-match-patch/