Implemented parsing of huffman tables. Bugfix in tree construction.