quicksort bugfix
Quicksort optimizations, unneeded code removed