seqcomp function

Compare two state sequences