Haffman algorithm based archivier