Bubble Sort.
Repeatedly swaps adjacent elements if they are in the wrong order.
Sorts the array in ascending natural order.