added mitch's sqrt(-ve) fix; now viterbi in log domain