Quicksort is a bitch to work out