Patricia Trie implementation complete. Cleanups remain.