add comments to selection sort