merge sort and quick sort