fold_dt function

Widens the dataset to take into account the t previous time slices