added QuickSort algorithm