seqsha function

Sequence History Analysis (SHA)