Add lead and lag functions.
Fixes #125