Selection Sort Time Complexity Formula