Aproveitando o X, o novo algoritmo é muito melhor.