Scan Functions

Adds scanl, scanr and scan1 variants to prelude