symbol-based trie - experimental code, work in progress.