new word finding algorithm