pub fn calc(max_bitwidth: u8, frequencies: &[usize]) -> Vec<u8>
Reference: A Fast Algorithm for Optimal Length-Limited Huffman Codes