Fixed the insertion sort.