modify startup script
add twostateViterbi algorithm

Viterbi algorithm for two state