lagvec function

Lag by shifting