bubble sort works.