Implementing Huffman Coding/Huffman Compression with Scala