Bubble sort and quick sort