Features created by functions

lead, lag and moving average features now use functions.
lead, lag and moving averages are created from vectors to allow for any
lead, lag or moving average feature to be created.