Reorganized and split dataset into training, validation, and testing data.