Changed calculation functions to return ArrayLists of values for each iteration.