Updated selection sort pseudocode.