splits a csv file into smaller chunks