Implemented quickselect in python.

A new, cleaner implementation and testing of quicksort was
  also added.