added comments for selection sort