add and resolve Longest_Common_Substring