add longest commonsubstr