organize libs and fix viterbi maxDelta problem