finished the sort exercises in list1.py