Read huff header and generated the huff tree