sorting algorithm based on ELO algorithm