Selection Sort Time Complexity Derivation