Updating Bubble Sort