quick sort scrathcpad