CS171, Homework 5: adapt the QuickSort algorithm to use an interface