Quick Sort: better solution