explicit smoothsort is working, finally