Changing to algorithm I thought of last night for bubble sort.