Quick sort implemented