Finished basic sel-sort part