schematics of quick sort