reading trainging set and test set from file