Quicksort with Generics