huffmantree methods