Finish bubble sort