finished first part
Huffman tree for the Flatland book