Calculate Algorithm Time for Input Size 1000000