Compile-time quicksort