Sorting - basic quicksort, generics