Word auto-completer using a search tree