Mikolaj Zalewski : use common function to compute the longest common subsequence