QuickSort program for OS class