progress on hufftree
more huffftree progress
did writeToFile