Partially optimize a certain form of multiplication
Remove unnecessary return value from countRepetendMatches()
Improve multiplication optimization