quick sort 1031