implement huffman algorithm with stl priority-queue, first you must have the file, then the result is saved