Initial port with SequenceMatcher and unified_diff()

Ported from python default branch (29764a7bd6ba).