Add accumulate exercise

Added accumulate exercise - based off of Haskell equivalent.