Added timelog to selectionSort