function test_targets = CART(train_patterns, train_targets, test_patterns, params)
% Classify using classification and regression trees
% Inputs:
% training_patterns - Train patterns
% training_targets - Train targets
% test_patterns - Test patterns
% params - [Impurity type, Percentage of incorrectly assigned samples at a node]
% Impurity can be: Entropy, Variance (or Gini), or Misclassification
%
% Outputs
% test_targets - Predicted targets
1