foldl1 implementation
Merge pull request #1285 from Heather/master

foldl1 implementation