working on solver and 2nd to last part of huffman