Cpp Sorting Algorithm Python Example