adding quicksort(needs debugging)