Implementing sort with a basic quicksort.

Inspired by the 'basic minimalist haskell quicksort'. See the TODOs for
the issues outstanding.