Initial patricia trie implementation for longest match processing

(doesn't work yet)