adjust header format, add progress bar

use a single thread to excute the compress/decompress
codemap format in header adjust: key+codelength+code
add progress bar