finished bubble-sort