Incorporate array diffing