improve, comment

improve last step in viterbi: find the optimal path with backward
pointer, add more comment, remove useless import