Demonstrates the quick sort algorithm.