A fastest version of mayorRepetido