Amortized Analysis of Rehashing