Rewrote enc_traverse to recursively generate bit codes, tested with a trie of 'mississippi' grabbed from actual trie in memory via gdb and drawn on paper IT MATCHES SO IT BETTER WORK