CalcMaxMismatch function

Maximum Number of Mismatches