initializeHuffmanTables

private fnvoid initializeHuffmanTables(ref ubyte[][] lengths, const(uint)[] mtfFreqs, int nGroups, int alphaSize, int nMTF) pure nothrow

Initialize Huffman table code lengths based on symbol frequency partitioning.

Creates an initial assignment where each table is responsible for a contiguous range of symbols. Symbols within the table's range get BZ_LESSER_ICOST, symbols outside get BZ_GREATER_ICOST.