finished quicksorter logic

Probably full of bugs, but we'll get to that later