Mean-Field Approximations to the Longest Common Subsequence Problem