Performs Quick Sort algorithm for randomly generated arrays