sparse_lag function

Compute lagged values for sparse vectors