Update amortize.cpp