wip autocomplete (ternary tree)