bugfix: initialize tier, residual, and totalTime at the beginning of the alg.