Bug fix for Select Sort implementation.