Minor changes to scanl
Universal reference to pass-by-value
Added nub (Issue #1)