Markov Sequence Analysis of behavior