Built Huffman tree function

Also added full text PDF