zlag function

Compute the lag of a vector.