update bubble sort pseudocode