Add quick sort implementation