revise quicksort; add tests and requirements.txt

We made these changes to ps2 together; now working and has working tests.