Fix a bug in huffman if there were less than the desired length of items
Fix a bug in huffman if there were less than the desired length of items

ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,nh2/shake,nh2/shake,nh2/shake,nh2/shake,nh2/shake,ndmitchell/shake,ndmitchell/shake