added another quicksort implementation