added queueing for huff_tree.c