fix quicksort stacksize
save/restore current path