Insertion sort - first part