searching synonyms in file, generating synonyms map