Fixed off-by-one error for Selection Sort.