Add mapAccumL and mapAccumR. Closes #632.

Reviewed by @tolmasky.
Merge pull request #675 from tolmasky/master

Add mapAccumL and mapAccumR. Closes #632.