msplit function

Split a dataframe for training and testing sets