added encoding tree
prio queue sorting not working because of pointers
almost got stuff working