add cleaner quicksort
remove unused veriables