Introduced Time lag functionality

Here I have used the xcov which is equivalent to corr (see my gist),