Insertion sort.