prelim bubble sort