add function to pickle the train&test data