Added the code for the quick sort.