Wrote function(s) to write encode table for values in trie *NOTE* these are untested and unfinished