Made bubble sort more compact