Selection Sort Time Complexity Proof