Selection sorting in Data Structure