fold_dt_rec function

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