add similarity hashmap for hierachical clustring (type: string) to improve speed