WIP: removed tmp variable from smoothsort.