Fixed for cost evaluation in insertion sort.