Find compound words in a given dictionary.