Added kappa coefficient to confusion_matrix(); Overloaded length() for trees