Efficient Viterbi Algorithms for Lexical Tree Based Models