WIP, even if everything works. Starting point for moving smoothsort to a qsort calling interface.