Added huffmanDecodingAlternate which uses one less if statement assuming that the huffman encoding is done slightly differently.