Add mapAccumL/R

@garyb @joneshf Please review?