Initial trie based router implementation.