simple ternary search trie with result limit