new insertion sort for python