Completed Bubble Sort