Correction in Selection algorithm.