Add scanl and test
Add scanr and other fixes
Add scanr1 and scanl1