1. A method for decoding values from a bitstream, wherein the bitstream encoding includes code words, the method comprising obtaining a first number of bits from the bitstream, wherein the first number of bits includes at least a portion of a first code word; using the first number of bits to obtain a first entry in a table; using at least a portion of the first entry to generate an address to an array, wherein the array is addressed using a recoding of the code words; and using the array address to obtain an entry to decode the first code word.