fix build on 32-bit platform
make cost-model more like actual quicksort