Improved bubble sort -- closer to actual bubble sort.