Update huffman decoder.

Omit final flag by putting final states at the beginning of states array.
MAX_FINAL_STATE holds the last index of the final states.