Added a quicksort implementation