tail recursive sum function (lecture)
Merge branch 'master' of https://github.com/andrewneilson/progfun