Added structure to collect sort-statistics.