Demonstrates partitioning an array