qsort in python and C++, compile their performance