get similarity matrix for string list