dependance of sorting time on number of different items