First shot of quicksort.

Needs some optimization.