add generate_train_val and makefile to generate train.txt and val.txt