added function to divide 1 data file into several pieces