Comparaison of sorting algorithms in Python