bubble sort, selection sort + test harness