part of Haffman's algorithm
some
Merge pull request #5 from yuklia/changes

Changes