plot of times as a function of N