Selection Sort Time Complexity Calculation