Port of the google-diff-match-patch (https://code.google.com/p/google-diff-match-patch/) lib to PHP