Modify dictionary.searchWord

Rewrite with itertools.chain