complexity analysis amortized 353630