ruby script to divide up the dataset.