bubble sort and quick sort