duplicated.editmatrix function

Check for duplicate edit rules