Bubble sort - first attempt