An implementation in scala for "Huffman Coding"