Finished decision tree algorithm implementation.