Made keyword distace single linkage, wordlist based on union-set