finished insertion sort