update on LCS and add string_distance