Browsing by Subject Longest common subsequence problem