Insertion sort assignment