Added LCS Algorithm