Implement Quick Sort Algorithm