Working simple quicksort implementation.