add accumulate erlang assignment
refactored accumulate to tail-recursive + reverse
Merge pull request #1031 from wilmoore/accumulate-erlang-assignment

add erlang accumulate assignment