fix bugs in amortization

1. wrong costs are used
2. when more buildings than 1,2,3 are supplied to buildingtoplist
they will all end up as first because they don't have an atime