faster search algo by indexing base_word