Implemented LCS by adding a new scoring system