Insertion Sort Time Complexity Calculation