tsPartition function

Generate training and test indices for time series cross validation