Made optimized bubble sort a little more readable