function [newData] = prepareData(dataset)

% Normalizes and reorders dataset in to 20 seperate instances

addpath("./UTIL", "./GA", "./KEYS", "./DATASETS");

% Assumes effort is the last column of the data
data = load(dataset);
x = size(data);
a = []; % datastore for reordered set

% Normalize the features
for i = 1 : x(2) - 1
data(:,i) = norm_Col(data(:,i));
end

for i = 1 : 20

order = randperm(x(1));
for j = 1 : x(1)
a(j,:) = data(order(j),:);
end

newData(:,:,i) = a;
end