quick sort re gen