Quicksort modified to work with other classes.