Starting quicksorter logic