seqdur function

Extract state durations from a sequence object.