Use patience algorithm to generate diffs