update huffCode