half done quick sort python