finishing indexesOfBest method. First part of tuple is the index