Implemented QuickSort solution