updating bubble sort