make quick sort work on array instead of lists
simple benchmarking