Bubble sort implemented.