Add code to break data into cross-validation segments