[Haskell Huffman coding] provide tool to build the char occurrence histogram