init commit for quicksort, move shared resources to parent