split dataset into two files