The current quick sort function uses the [Lamuto partition scheme](https://en.wikipedia.org/wiki/Quicksort#Lomuto_partition_scheme). The [Hoare partition scheme](https://en.wikipedia.org/wiki/Quicksort#Hoare_partition_scheme) is more efficient and would be a good enhancement.