Simplify quick sort