building matrix score for LCS working from a file.