added accumulated reward computation.
added accumulated reward computation.
Merge pull request #2 from hhatefi/rewards

Accumulated rewards by Hassan