Finished sorting methods for HW#20b: sorting2