wine_data;
%In this case, we want to normalize the data so that the window width can be the same
%for different dimensions
normalize_flag = 1;
if normalize_flag ~= 0,
   for ccol=2:size(wine_ins,2),
      minV=min(wine_ins(:,ccol));
      maxV=max(wine_ins(:,ccol));
      varCol=var(wine_ins(:,ccol));
      wine_ins(:,ccol) = (wine_ins(:,ccol)-minV)/sqrt(varCol);
   end
end
level=1;
indices=1:size(wine_ins,1);
%indices=1:160;
indices=indices';
imgMat=wine_ins(indices,1:4);
tree_array=[];
nodes=0;
[ind tree_array nodes]=split_vectors_tree(imgMat, indices, level,tree_array,1,nodes,1);
classify_vectors_tree(imgMat,imgMat,tree_array,1);