Example code to demonstrate the QuickSort algorithm