Added naive LCS implementation.