Implement a slightly smarter diff algorithm

This diff algorithm looks for sequences that have been inserted in the old sequence.