fixed Accumulation.scala in hydrology

changed from using two stacks to using tuples.