split the data so that training and testing can be used